package fr.esiag.isidis.pdsTeam.swing;

import java.awt.Dimension;

import javax.swing.JButton;
import javax.swing.JPanel;

public class ButtonPanel extends JPanel {
	/**
	 * 
	 */
	private static final long serialVersionUID = 3061440625158923343L;

	public ButtonPanel(String labels[]) {
		for (int i = 0; i < labels.length; i++) {
			JButton b = new JButton(labels[i]);
			add(b);
		}
	}

	public ButtonPanel(String labels[], int width) {
		for (int i = 0; i < labels.length; i++) {
			JButton b = new JButton(labels[i]);
			b.setToolTipText(labels[i]);
			b.setPreferredSize(new Dimension(width, 25));
			add(b);
		}
	}
}
